package com.helei.data.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.helei.data.entity.SysRole;
import com.helei.data.mapper.SysRoleMapper;
import com.helei.data.service.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统角色表 服务实现类
 * </p>
 *
 * @author hl
 * @since 2021-07-18
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {
    @Override
    public List<SysRole> selectUserRole(Long id) {
        return this.baseMapper.selectUserRole(new QueryWrapper<>().eq("ur.user_id",id));
    }
}
